package com.cn.bulu.dao;

import com.cn.bulu.pojo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Transactional
public interface HomePageDao {
	//搜索商品
	List<Sample> searchSample(Map<String, Object> map);
	//查询纱价格
	Double selectSprice(Integer sampleId);
	//查询帘头价格
	Double selectLprice(Integer sampleId);
	//查询同系列除封面外的其他商品
	List<Sample> selectSeries(@Param("series")Integer series);
	//首页
	List<Sample> selectHomePage(Map<String, Object> map);
	//查询风格
	List<Map<String, Object>> selectStyle();
	//查询适用场景
	List<Map<String, Object>> selectLocation();
	//查询成品帘适用场景
	List<Map<String, Object>> selectLT();
	//查询品牌
	List<Map<String, Object>> selectBrand();
	//查询成品帘类型
	List<Map<String, Object>> selectFPT();
	//查询配件类型
	List<Map<String, Object>> selectPJ();
	//筛选风格
	List<Integer>selectSampleStyle(Integer styleId);
	//筛选适用场景
	List<Integer>selectSampleLocation(Integer locationId);
	//筛选出布艺帘外
	List<Sample> selectScreen(Map<String, Object> map);
	//筛选
	List<Sample> selectKeyword(Map<String, Object> map);
	//筛选
	List<Sample> selectKeyword2(Map<String, Object> map);
	//查询超高
	List<Integer>selectCG();
	//查询图文详情的图片
	List<Picture> selectXQ(Integer sampleId);
	//查询商品评价
	List<Map<String, Object>> selectEvaluation(Map<String, Object> map);
	//查询用户昵称
	String selectNickName(Integer customerId);
	//查询评价图片
	List<String> selectImg(Integer evaluationId);
	//查询图文详情图片
	List<Map<String,Object>> selectTuwen(Integer sampleId);
	//查询款式说明
	List<Map<String, String>> selectKuanshi(Integer sampleId);
	//查询测量安装图片
	List<Map<String, String>> selectCeliang(Integer sampleId);
	//查询满减
	Map<String, Object> selectMjian(String city);
	//查询布艺帘产品的一些详情
	Map<String, Object> selectXiangqing(Integer sampleId);
	//查询产品的风格
	List<String> selectStyleContent(Integer sampleId);
	//查询成品帘的一些详情
	Map<String, Object> selectCpinlian(Integer sampleId);
	//查询成品帘的门幅
	List<Double> selectMenfu(Integer sampleId);
	//查询适用场景
	List<String> selectShiyong(Integer sampleId);
	//查询配件的一些详细信息
	Map<String, Object> selectPeijianX(Integer sampleId);
	//查询热搜
	List<String> selectHotSearch();
	Customer getCustomerById(Integer integer);
	//查询布料
	List<Composition> selectCompositionBySampleId(Integer sampleId);
	//查询一些优惠信息
	Territory_joint selectTerritoryByType(Integer type);
}
